// JavaScript Document
	function getStyle(obj,name)
	{
			if(obj.currentStyle)
				{
						return obj.currentStyle[name];
				}else{
						return getComputedStyle(obj,false)[name];
				}
	}
	
	//var timer = null;
	//json = {width:300,height:300}
	function startMove(obj,json,funEnd)
	{
		
				clearInterval(obj.timer);
		
		 	obj.timer = setInterval(function(){
					//for循环 也被 定时器控制着
				for(var attri in json)
				{
					
							var bStop = true;   //所有值都已经到达目标值
					
							if(attri=='opacity')
							{
								var cur = Math.round(parseFloat(getStyle(obj,attri))*100);
							}else
							{
								var cur = parseInt(getStyle(obj,attri));
							}


							var speed = (json[attri]-cur)/6;

							speed= speed>0?Math.ceil(speed):Math.floor(speed);
/*
							if(json[attri]==cur)
								{
									clearInterval(obj.timer);

									if(funEnd)
									{
											funEnd();
									}

								}else{
									*/
								
									if(json[attri]!=cur) bStop=false;
					
									if(attri=='opacity')
										{
												obj.style.filter ='alpha(opacity'+(cur+speed) +')';  //IE
												obj.style.opacity = (cur+speed)/100;  // chrome FF


										}else{
											obj.style[attri] = cur + speed + 'px';
										}

								//}
					
					}
					
					if(bStop==true)
					{
							clearInterval(obj.timer);
							if(funEnd) funEnd();
					}
					
			},30);
		
	}